import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/es/components/message/style/css';


import { mockXHR } from "@/mock/index";

// 判断开发环境,mock环境时启动mock服务
if(process.env.NODE_ENV=="mock"){
	mockXHR();
}

const app = createApp(App)
app.config.globalProperties.$test = "测试文本"



app.use(router).mount('#app')
